<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>单选框</title>
</head>
<body>
    <h2>单选框</h2>
    <div class="demo">

        <input type="radio" name="kaiguan" value="0" checked="true">
        <label>打开</label>
        <input type="radio" name="kaiguan" value="1">
        <label>关闭</label>
    </div>

</script>
</body>

</html>